package com.wanyang.exception;

import com.wanyang.vo.ApiResult;
import lombok.Data;

@Data
public class ApiException extends RuntimeException {
    private Integer code;

    public ApiException(String message) {
        super(message);
        this.code = ApiResult.INNER_ERROR;
    }

    public ApiException(String message, Integer code) {
        super(message);
        this.code = code;
    }
}
